package com.bauer.java.spring;

import com.bauer.java.spring.customtag.DemoTag;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @ Author     ：rui.wei
 * @ Date       ：Created in 15:18 2018/6/5
 * @ Description：
 */
public class Test {

    public static void main(String[] args) {
        BeanFactory beanFactory=  new XmlBeanFactory(new ClassPathResource("beans.xml"));
        DemoTag demoBean =  (DemoTag) beanFactory.getBean("sss");
        System.out.println(demoBean.getName());
        AtomicInteger atomicInteger =  new AtomicInteger();
    }
}
